import request from '@/utils/request'

export function addBook(data){
  return request({
    url: '/book/addBook',
    method: 'post',
    data
  })
}


export function getBookBigClassList(data){
  return request({
    url: '/book/getBookBigClassList',
    method: 'post',
    data
  })
}

export function getBookSmallClassList(data){
  return request({
    url: '/book/getBookSmallClassList',
    method: 'post',
    data
  })
}

export function getBookList(data){
  return request({
    url: '/book/getBookList',
    method: 'post',
    data
  })
}

export function borrowBook(data){
  return request({
    url: '/book/borrowBook',
    method: 'post',
    data
  })
}

export function returnBook(data){
  return request({
    url: '/book/returnBook',
    method: 'post',
    data
  })
}

export function delBook(data){
  return request({
    url: '/book/delBook',
    method: 'post',
    data
  })
}

